package args;

import java.util.HashMap;
import java.util.Map;

public class ArgsApplication {
    public static void main(String[] args) {
        Map<String,String> params = new HashMap<>();
        for (int i = 0; i < args.length; i++) {
            System.out.println(args[i]);
            if(args[i].startsWith("-")){
                params.put(args[i].substring(1),args[++i]);
            }
        }
        System.out.println(params);
    }
}

/*
需要通过
 */